//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.vere.rpc.model;

public class RemoteAddress {
    private String address;
    private boolean connected;
    private String ip;
    private int port;

    public RemoteAddress(String address, boolean connected) {
        this.address = address;
        this.connected = connected;
    }

    public String getAddress() {
        return this.address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public boolean isConnected() {
        return this.connected;
    }

    public void setConnected(boolean connected) {
        this.connected = connected;
    }

    public String getIp() {
        String[] addressArray = this.address.split(":");
        return addressArray[0];
    }

    public int getPort() {
        String[] addressArray = this.address.split(":");
        return Integer.parseInt(addressArray[1]);
    }
}
